package jr.dao.impl;

import jr.dao.IUsersDao;
import jr.pojo.Users;
import jr.util.DBHelper;

import java.util.ArrayList;

public class UsersDaoImpl implements IUsersDao {

    private DBHelper db = new DBHelper();

    @Override
    public ArrayList<Users> selectUsers(String user,String pwd) {
        String sql="select * from users where usercode=? and password=?";
        Object[] objs={user,pwd};
        return db.dtQuery(sql,Users.class,objs);
    }
}
